import request from '@/utils/request'

// 查询质检结果记录列表
export function listResult(query) {
  return request({
    url: '/mark/qaresult/list',
    method: 'get',
    params: query,
  })
}

// 查询质检结果记录详细
export function getResult(mQaResultId) {
  return request({
    url: '/mark/qaresult/' + mQaResultId,
    method: 'get',
  })
}

// 新增质检结果记录
export function addResult(data) {
  return request({
    url: '/mark/qaresult',
    method: 'post',
    data: data,
  })
}

// 修改质检结果记录
export function updateResult(data) {
  return request({
    url: '/mark/qaresult',
    method: 'put',
    data: data,
  })
}

// 删除质检结果记录
export function delResult(mQaResultId) {
  return request({
    url: '/mark/qaresult/' + mQaResultId,
    method: 'delete',
  })
}

// 导出质检结果记录
export function exportResult(query) {
  return request({
    url: '/mark/qaresult/export',
    method: 'get',
    params: query,
  })
}

// 查询标定参数
export function calib(query) {
  return request({
    url: '/mark/qaresult/calib',
    method: 'get',
    params: query,
  })
}
